<div>
    <ul>
        <li ng-repeat='menu in totalMenu' ng-init="menu.checkObj={id:menu.id,name:menu.name}">
            <label>
                <input type="checkbox" checklist-model="ngModel" checklist-value="menu.checkObj">{{menu.name|translate}}</label>
            <div ng-repeat='sub in menu.sub' ng-init="sub.checkObj={id:sub.id,name:sub.name}" style="margin-left: 20px;">
                <label>
                    <input type="checkbox" id="menu_{{sub.id}}" checklist-model="ngModel" checklist-value="sub.checkObj">{{sub.name|translate}}
                </label>
            </div>
        </li>
    </ul>
</div>